package com.myway.dto.flight;

import java.io.Serializable;


public class DTOConnectingFlightPort implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private DTOConnectingFlightRoute route;
	private String airportCode;
	
	/**
	 * Minimum lay-over time (in minute) 
	 */
	private int minLayover;
	
	/**
	 * Maximum lay-over time (in minute)
	 */
	private int maxLayover;
	
	/**
	 * The sequence of this connecting airport in the flight route. Starting from 1.
	 */
	private int sequence;

	public DTOConnectingFlightPort() {}
	
	public DTOConnectingFlightPort(DTOConnectingFlightRoute route) {
		super();
		this.route = route;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public DTOConnectingFlightRoute getRoute() {
		return route;
	}

	public void setRoute(DTOConnectingFlightRoute route) {
		this.route = route;
	}

	public String getAirportCode() {
		return airportCode;
	}

	public void setAirportCode(String airportCode) {
		this.airportCode = airportCode;
	}

	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	public int getMinLayover() {
		return minLayover;
	}

	/**
	 * Specify the minimum lay-over time between the landing time of previous flight and the departure time of
	 * the next connecting flight.
	 * 
	 * @param minLayover
	 *            Minimum lay-over time in minute.
	 */
	public void setMinLayover(int minLayover) {
		this.minLayover = minLayover;
	}

	public int getMaxLayover() {
		return maxLayover;
	}

	/**
	 * Specify the maximum lay-over time between the landing time of previous flight and the departure time of
	 * the next connecting flight.
	 * 
	 * @param maxLayover
	 *            Maximum lay-over time in minute.
	 */
	public void setMaxLayover(int maxLayover) {
		this.maxLayover = maxLayover;
	}

}
